package com.yonxao.demo.crud.core;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author liu-rui
 * @date 2019-08-15 16:26
 */
@AllArgsConstructor
@Getter
public enum RetCodeEnum implements RetCode {

    SUCCESS(200, "成功"),
    NOT_PERMISSION(-7, "鉴权失败"),
    SERVER_ERROR(500, "服务端异常"),
    BUSY(584, "服务器忙，稍后重试哈"),
    INVALID_PARAM(601, "无效的参数，参数名："),
    API_ERROR(580, "调用api接口异常"),
    ;

    private final int code;
    private final String msg;
}
